<!DOCTYPE HTML>
<html>
  <head>
<link rel="stylesheet" href="../../../js/plupload-2.1.2/js/jquery.plupload.queue/css/jquery.plupload.queue.css" type="text/css" media="screen" />
<script src="../../../js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../../../js/plupload-2.1.2/js/plupload.full.min.js"></script>
<script type="text/javascript" src="../../../js/plupload-2.1.2/js/jquery.plupload.queue/jquery.plupload.queue.min.js"></script>
<script type="text/javascript" src="../../../js/plupload-2.1.2/js/i18n/zh_CN.js"></script>
  </head>
  
  <body>
<form id="upload_Form" method="post">
<div id="uploader" style="width: 500px;height: 400px">
    <p>Your browser doesn't have Flash, Silverlight or HTML5 support.</p>
</div>
</form>
 
 
<script type="text/javascript">
$(function() {
 
    $("#uploader").pluploadQueue({
        runtimes : 'html5,flash,silverlight,html4',
        url : '/photo/uploadImg',
        unique_names : true,
        
        flash_swf_url : '/plupload/js/Moxie.swf',
     
        silverlight_xap_url : '/plupload/js/Moxie.xap',
         
        preinit : {
            Init: function(up, info) {
            },
 
            UploadFile: function(up, file) {
            }
        },
 
        init : {
            PostInit: function() {
            },
 
            Browse: function(up) {
            },
 
            Refresh: function(up) {
            },
  
            StateChanged: function(up) {
            },
  
            QueueChanged: function(up) {
            },
 
            OptionChanged: function(up, name, value, oldValue) {
            },
 
            BeforeUpload: function(up, file) {
            	up.setOption('url','/photo/uploadImg/{photo.id}'); 
            },
  
            UploadProgress: function(up, file) {
            },
 
            FileFiltered: function(up, file) {
            },
  
            FilesAdded: function(up, files) {
                plupload.each(files, function(file) {
                });
            },
  
            FilesRemoved: function(up, files) {
                plupload.each(files, function(file) {
                });
            },
  
            FileUploaded: function(up, file, info) {
            },
  
            ChunkUploaded: function(up, file, info) {
            },
 
            UploadComplete: function(up, files) {
            },
 
            Destroy: function(up) {
            },
  
            Error: function(up, args) {
            }
        }
    });
    
});
</script>
 
  </body>
</html>
